<?php

class HtmlHelper {

    public static function AddClassIf($condition, $default) {
        
        return $condition ? sprintf('class=%s', $default) : null;
        
    }

}

?>
